<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectErpUser',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: 'ERP用户',
          displayKey: 'name',
          returnKeys: ['id', 'code'],
          listUrl: '/api/erp/list',
          queryParamCode: 'name',
          queryParamText: 'ERP用户',
          columns: [
            { title: 'ERP用户ID', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
            { title: '人员姓名', dataIndex: 'code', align: 'center', width: '35%' },
            { title: '操作码', dataIndex: 'rank_dictText', align: 'center', width: '25%' }
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>